<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/11
 * Time: 15:52
 */
$osc_id = $route->bodyParams["osc_id"];//班级主键ID
$number = $route->bodyParams["number"];

//更新条件
$whereArr = [
    "osc_id" => $osc_id
];

//执行写入语句
$rsData = $db->mysqlDB->updateInc("oa_school_class",$whereArr,"osc_official_student_count",$number);

//返回成功结果
$response->responseData( true, $rsData );